const CONFIG = {
    //文章页面按钮
    post: {
        viewBtn: {
            position: { x: 144, y: 1651 },
            options: { id: 'e__', text: '查看笔记' },
            default() {
                return id('e__').text('查看笔记').findOne(2000)
            }
        },
        likeBtn: {
            position: { x: 498, y: 2142 },
            options: { className: 'android.widget.Button', descStartsWith: '点赞' },
            default() {
                return className('android.widget.Button').descStartsWith('点赞').findOne(2000)
            }
        },
        collectBtn: {
            position: { x: 691, y: 2164 },
            options: { className: 'android.widget.Button', desc: '收藏' },
            default() {
                return className('android.widget.Button').descStartsWith('收藏').findOne(2000)
            }
        },
        resolveBtn: {
            position: { x: 885, y: 2164 },
            options: { className: 'android.widget.Button', desc: '评论' },
            default() {
                return className('android.widget.Button').descStartsWith('评论').findOne(2000)
            }
        },
        followBtn: {
            position: { x: 767, y: 113 },
            options: { depth: 12, text: '关注' },
            default() {
                return depth(12).text('关注').findOne(2000)
            }
        },
        followBtn2: {
            position: { x: 767, y: 113 },
            options: { className: 'android.widget.Button', text: '关注' },
            default() {
                return className('android.widget.Button').text('关注').findOne(2000)
            }
        },
        followVideoBtn: {
            position: { x: 426, y: 1761 },
            options: { id: 'matrixFollowView', text: '关注' },
            default() {
                return id('matrixFollowView').text('关注').findOne(2000)
            }
        },
        followImgBtn: {
            position: { x: 78, y: 92 },
            options: { depth: 12, id: 'a0j' },
            default() {
                return depth(12).id('a0j').findOne(2000)
            }
        },
        followVideoImgBtn: {
            position: { x: 14, y: 1827 },
            options: { depth: 12, id: 'matrixAvatarView' },
            default() {
                return depth(12).id('matrixAvatarView').findOne(2000)
            }
        },
        followVideoImgBtn2: {
            position: { x: 14, y: 1827 },
            options: { className:android.widget.Button, id: 'jon' },
            default() {
                return className('android.widget.Button').id('jon').findOne(2000)
            }
        },
        resolveInputBtn: {
            position: { x: 41, y: 2170 },
            options: { text: '说点什么' },
            default() {
                return textStartsWith('说点什么').findOne(2000)
            }
        },
        resolveInput: {
            options: { id: 'f33' },
            default() {
                return id('f33').findOne(2000)
            }
        },
        resolveInput2: {
            options: { className: 'android.widget.EditText' },
            default() {
                return className('android.widget.EditText').findOne(2000)
            }
        },
        infoSendBtn: {
            position: { x: 887, y: 1191 },
            options: { depth: 9, id: 'lkm', text: '发送' },
            default() {
                return depth(9).id('lkm').text('发送').findOne(2000)
            }
        },
        infoSendBtn2: {
            position: { x: 887, y: 1191 },
            options: { text: '发送' },
            default() {
                return text('发送').clickable().findOne(2000)
            }
        },
        moreBtn: {
            position: { x: 946, y: 107 },
            options: { className: 'android.widget.Button', desc: '更多' },
            default() {
                return className('android.widget.Button').desc('更多').findOne(2000)
            }
        },
        moreVideoBtn: {
            position: { x: 926, y: 92 },
            options: { className: 'android.widget.ImageView', desc: '更多' },
            default() {
                return className('android.widget.ImageView').desc('更多').findOne(2000)
            }
        },
        moreBtnMenu: {
            position: { x: 926, y: 92 },
            options: { id: 'ge8' },
            default() {
                return id('ge8').scrollable().findOne(2000)
            }
        },
        shareBrn:{
            position: { x: 926, y: 92 },
            options: { className: 'android.widget.Button', descContains: '分享' },
            default() {
                return className('android.widget.Button').descContains('分享').findOne(2000)
            }
        },
        copyBtn: {
            position: { x: 473, y: 2078 },
            options: { desc: '复制链接' },
            default() {
                return desc('复制链接').findOne(2000)
            }
        },
        titleInfo: {
            options: { id: 'g8t' },
            default(value) {
                return value ? id('g8t').find() : id('g8t').findOne(2000)
            }
        },
        contentInfo: {
            options: { id: 'dqe' },
            default(value) {
                return value ? id('dqe').find() : id('dqe').findOne(2000)
            }
        },
        contentInfo2: {
            options: { id: 'noteContentText' },
            default(value) {
                return value ? id('noteContentText').find() : id('noteContentText').findOne(2000)
            }
        },
        userName:{
            options: { id: 'nickNameTV' },
            default() {
                return id('nickNameTV').findOne(2000)
            }
        },
        userName2:{
            options: { id: 'matrixNickNameView' },
            default() {
                return id('matrixNickNameView').findOne(2000)
            }
        },
        UploadfileBtn:{
            position: { x: 954, y: 426 },
            options: { id: 'gln'},
            default() {
                return id('gln').findOne(2000)
            }
        },
        UploadfileBtn2:{
            position: { x: 954, y: 2184 },
            options: { id: 'f83'},
            default() {
                return id('f83').findOne(2000)
            }
        },
        commentList:{
            options: { id: 'g79'},
            default() {
                return id('g79').findOne(2000)
            }
        },
        commentList2:{
            options: { id: 'bag'},
            default() {
                return id('bag').findOne(2000)
            }
        },
        commentItem1:{
            options: { id: 'et4'},
            default() {
                return id('et4').find()
            }
        }
    },
    postEdit: {
        postTitle: {
            options: { id: 'c3k', text: '添加标题' },
            default() {
                return id('c3k').text('添加标题').findOne(2000)
            }
        },
        postContent: {
            options: { id: 'gqy', text: '添加正文' },
            default() {
                return id('gqy').text('添加正文').findOne(2000)
            }
        },
        postVideoContent: {
            options: { id: 'gqy', text: '添加正文' },
            default() {
                return id('gqy').text('添加作品描述').findOne(2000)
            }
        },
        postSendBtn: {
            position: { x: 314, y: 2112 },
            options: { id: 'aly', text: '发布笔记' },
            default() {
                return id('aly').text('发布笔记').findOne(2000)
            }
        },
        postSendView: {
            position: { x: 13, y: 207 },
            options: { id: 'au3' },
            default() {
                return id('au3').findOne(2000)
            }
        },
        postSendTitle: {
            position: { x: 14, y: 218 },
            options: { id: 'bgt' },
            default() {
                return id('bgt').findOne(2000)
            }
        }
    },
    //搜索页面按钮
    search: {
        searchInput: {
            position: { x: 209, y: 86 },
            options: { depth: 13, id: 'fah' },
            default() {
                return depth(13).id('fah').findOne(2000)
            }
        },
        searchBtn: {
            position: { x: 954, y: 75 },
            options: { depth: 8, id: 'luy', text: '搜索' },
            default() {
                return className('android.widget.Button').text('搜索').findOne(2000)
            }
        },
        searchTabBtn: {
            position: { x: 209, y: 296 },
            options: { className: 'androidx.appcompat.app.ActionBar$Tab' },
            default() {
                return className('androidx.appcompat.app.ActionBar$Tab').find()
            }
        },
        searchUserImg:{
            position: { x: 209, y: 296 },
            options: { id: 'jnc' },
            default() {
                return id('jnc').find()
            }
        },
        postBtn: {
            position: {},
            options: { depth: 11, id: 'hni' },
            default() {
                return depth(11).id('hni').clickable().find()
            }
        },
        postList: {
            position: {},
            options: { depth: 10, id: 'fa_' },
            default() {
                return depth(10).id('fa_').findOne(2000)
            }
        },
        userIsFollow: {
            position: { x: 863, y: 406 },
            options: { id: 'cmp', text: '已关注' },
            default() {
                return id('cmp').text('已关注').findOne(2000)
            }
        },
        userFollow: {
            position: { x: 863, y: 406 },
            options: { id: 'cmp', text: '关注' },
            default() {
                return id('cmp').text('关注').findOne(2000)
            }
        }

    },
    //首页页面按钮
    home: {
        homeMnue: {
            position: [],
            options: { depth: 8, id: 'bhd' },
            default() {
                return depth(8).id('bhd').findOne(2000)
            }
        },
        homeBtn: {
            position: { x: 0, y: 2172 },
            options: { depth: 10, id: 'du6', desc: '首页' },
            default() {
                return depth(10).id('du6').descStartsWith('首页').clickable().findOne(2000)
            }
        },
        homeHotBtn: {
            position: { x: 0, y: 2172 },
            options: { depth: 10, id: 'dua', desc: '热门' },
            default() {
                return depth(10).id('dua').descStartsWith('热门').clickable().findOne(2000)
            }
        },
        homePostBtn: {
            position: { x: 0, y: 2172 },
            options: { depth: 10, id: 'du9', desc: '发布' },
            default() {
                return depth(10).id('du9').descStartsWith('发布').clickable().findOne(2000)
            }
        },
        homeMessageBtn: {
            position: { x: 0, y: 2172 },
            options: { depth: 10, id: 'du8', desc: '消息' },
            default() {
                return depth(10).id('du8').descStartsWith('消息').clickable().findOne(2000)
            }
        },
        homeMyBtn: {
            position: { x: 0, y: 2172 },
            options: { depth: 10, id: 'du7', desc: '我' },
            default() {
                return depth(10).id('du7').descStartsWith('我').clickable().findOne(2000)
            }
        },
        searchIconBtn: {
            position: { x: 956, y: 86 },
            options: { depth: 14, id: 'hmf', desc: '搜索' },
            default() {
                return depth(14).id('hmf').desc('搜索').clickable().findOne(2000)
            }
        },
    },
    // 用户相关页面按钮
    user: {
        sendMessageBtn: {
            position: { x: 936, y: 638 },
            options: { id: 'jo7', text: '发私信' },
            default() {
                return id('jo7').text('发私信').findOne(2000)
            }
        },
        sendMessageBtnFollow: {
            position: { x: 929, y: 668 },
            options: { id: 'jo8', desc: '发消息' },
            default() {
                return id('jo8').desc('发消息').findOne(2000)
            }
        },
        userPageId: {
            position: { x: 313, y: 374 },
            options: { textStartsWith: '小红书号：' },
            default() {
                return textStartsWith('小红书号：').findOne(2000)
            }
        },
        userPageLocation: {
            position: { x: 313, y: 417 },
            options: { textStartsWith: 'IP属地：' },
            default() {
                return textStartsWith('IP属地：').findOne(2000)
            }
        },
        userPageNick: {
            position: { x: 313, y: 278 },
            options: { depth: 15, id: 'gxp' },
            default() {
                return depth(15).id('gxp').findOne(2000)
            }
        },
        userPageAge: {
            position: { x: 313, y: 278 },
            options: { id:'gxu' },
            default() {
                return id('gxu').findOne(2000)
            }
        },
        userPagefollow: {
            position: { x: 41, y: 578 },
            options: { descEndsWith: '关注' },
            default() {
                return descEndsWith('关注').findOne(2000)
            }
        },
        userPagefans: {
            position: { x: 172, y: 578 },
            options: { descEndsWith: '粉丝' },
            default() {
                return descEndsWith('粉丝').findOne(2000)
            }
        },
        userPagelike: {
            position: { x: 303, y: 578 },
            options: { descEndsWith: '获赞与收藏' },
            default() {
                return descEndsWith('获赞与收藏').findOne(2000)
            }
        },
        userPageGender: {
            position: { x: 41, y: 551 },
            options: { depth: 16, id: 'gxo' },
            default() {
                return depth(16).id('gxo').findOne(2000)
            }
        },
        userAllPush: {
            options: { id: 'bpy' },
            default() {
                return id('bpy').findOne(2000)
            }
        },
        userAllLike: {
            options: { id: 'bpr' },
            default() {
                return id('bpr').findOne(2000)
            }
        },
        userAllSave: {
            options: { id: 'bpn' },
            default() {
                return id('bpn').findOne(2000)
            }
        },
        userPostList:{
            options: { id: 'g79' },
            default() {
                return id('g79').findOne(2000)
            }
        },
        userPostItems:{
            options: { id: 'au3' },
            default() {
                return id('au3').find()
            }
        }
    },
    //选中文件相关页面按钮
    file: {
        messageFileMenu: {
            position: { x: 0, y: 196 },
            options: { id: 'dd_' },
            default() {
                return id('dd_').findOne(2000)
            }
        },
        messageFileImgBtn: {
            position: { x: 484, y: 227 },
            options: { depth: 10, text: '照片' },
            default() {
                return depth(10).text('照片').findOne(2000)
            }
        },
        messageFileItem: {
            options: { depth: 14, id: 'ffv' },
            default() {
                return depth(14).id('ffv').find()
            }
        },
        messageFileImgRadio: {
            position: { x: 484, y: 227 },
            options: { id: 'hsy' },
            default() {
                return id('hsy').find()
            }
        },
        FileSend: {
            position: { x: 484, y: 227 },
            options: { depth: 9, id: 'e1f' },
            default() {
                return depth(9).id('e1f').findOne(5000)
            }
        },
        FileRadioNext: {
            position: { x: 556, y: 2164 },
            options: { id: 'a_w', desc: '下一步' },
            default() {
                return id('a_w').desc('下一步').findOne(5000)
            }
        },
        FileEditNext: {
            position: { x: 816, y: 2164 },
            options: { id: 'aqf', text: '下一步' },
            default() {
                return id('aqf').text('下一步').findOne(5000)
            }
        }
    },
    //聊天相关页面按钮
    message: {
        messageHomeItem: {
            options: { depth: 15, id: 'bgg' },
            default() {
                return id('bgg').find()
            }
        },
        messageHomeItemNews: {
            options: { id: 'a3u' },
            default() {
                return id('bgg').find()
            }
        },
        messageHomeItemInfo: {
            options: { id: 'fq6' },
            default() {
                return id('fq6').find()
            }
        },
        messageHomeAttBtn: {
            position: { x: 936, y: 638 },
            options: { depth: 17, id: 'b_5', descStartsWith: '评论和@', descEndsWith: '未读' },
            default() {
                return depth(17).id('b_5').descStartsWith('评论和@').descEndsWith('未读').findOne(2000)
            }
        },
        messageHomeLikeBtn: {
            position: { x: 936, y: 638 },
            options: { depth: 17, id: 'egv', descStartsWith: '赞和收藏', descEndsWith: '未读' },
            default() {
                return depth(17).id('egv').descStartsWith('赞和收藏').descEndsWith('未读').findOne(2000)
            }
        },
        messageHomeFollowBtn: {
            position: { x: 936, y: 638 },
            options: { depth: 17, id: 'cd_', descStartsWith: '新增关注', descEndsWith: '未读' },
            default() {
                return depth(17).id('cd_').descStartsWith('新增关注').descEndsWith('未读').findOne(2000)
            }
        },
        messageHomeBtnMenu: {
            position: { x: 936, y: 638 },
            options: { depth: 16, id: 'egz' },
            default() {
                return depth(16).id('egz').findOne(2000)
            }
        },
        messageHomeScroll: {
            position: { x: 0, y: 196 },
            options: { depth: 14, id: 'fqk' },
            default() {
                return depth(14).id('fqk').findOne(2000)
            }
        },
        messageSecScroll: {
            position: { x: 0, y: 196 },
            options: {  id: 'ia7' },
            default() {
                return id('ia7').findOne(2000)
            }
        },
        sendMessageBtn: {
            position: { x: 936, y: 638 },
            options: { depth: 10, id: 'ayy', text: '发送' },
            default() {
                return depth(10).id('ayy').text('发送').findOne(2000)
            }
        },
        messageAttScroll: {
            position: { x: 0, y: 196 },
            options: { depth: 8, id: 'ft0' },
            default() {
                return depth(8).id('ft0').findOne(2000)
            }
        },
        messageAttItem: {
            position: { x: 0, y: 196 },
            options: { depth: 9, className: 'android.widget.RelativeLayout' },
            default() {
                return depth(9).className('android.widget.RelativeLayout').find()
            }
        },
        messageAttItemImg: {
            options: { id: 'frz' },
            default() {
                return id('frz').find()
            }
        },
        messageAttScrollbottom: {
            options: { text: '查看更多历史消息' },
            default() {
                return text('查看更多历史消息').findOne(2000)
            }
        },
        messageAttScrollbottom2: {
            options: { text: '- THE END -' },
            default() {
                return text('- THE END -').findOne(2000)
            }
        },
        messageAttScrollTitle: {
            options: { id: 'frn' },
            default() {
                return id('frn').findOne(2000)
            }
        },
        messageAttItemFileBtn: {
            position: { x: 275, y: 1180 },
            options: { className: 'android.widget.ImageView', drawingOrder: 4 },
            default() {
                return  className('android.widget.ImageView').drawingOrder(4).findOne(2000)
            }
        },
        messageSiXinText: {
            options: { depth: 15, id: 'ayd' },
            default() {
                return depth(15).id('ayd').find()
            }
        },
        messageSiXinFile: {
            position: { x: 938, y: 2176 },
            options: { depth: 10, id: 'i16' },
            default() {
                return depth(10).id('i16').findOne(2000)
            }
        },
        messageSiXinFileImg: {
            position: { x: 81, y: 1680 },
            options: { depth: 16, id: 'b00' },
            default() {
                return depth(16).id('b00').findOne(2000)
            }
        },
        messageSiXinUserImg: {
            position: { x: 107, y: 92 },
            options: { depth: 9, id: 'ay7' },
            default() {
                return depth(9).id('ay7').findOne(2000)
            }
        },
        messageSecList:{
            options: { id: 'fsw' },
            default() {
                return id('fsw').findOne(2000)
            }
        }
    },
    // 点赞页面
    like: {
        likeScrollList: {
            options: { depth: 8, id: 'ft0' },
            default() {
                return depth(8).id('ft0').findOne(2000)
            }
        },
        likeUserImg: {
            options: { depth: 10, id: 'frz' },
            default() {
                return depth(10).id('frz').find()
            }
        },
        likeUserName: {
            options: { depth: 12, id: 'fs1' },
            default() {
                return depth(12).id('fs1').find()
            }
        }
    },
    // 点赞页面
    follow: {
        likeScrollList: {
            options: { depth: 8, id: 'ft0' },
            default() {
                return depth(8).id('ft0').findOne(2000)
            }
        },
        followUserImg: {
            options: { depth: 10, id: 'a0j' },
            default() {
                return depth(10).id('a0j').find()
            }
        },
        followUserName: {
            options: { depth: 12, id: 'fsg' },
            default() {
                return depth(12).id('fsg').find()
            }
        }
    },
    system: {
        cancleBtn: {
            position: { x: 107, y: 92 },
            options: { id: 'kzg', text: '取消' },
            default() {
                return id('kzg').text('取消').findOne(2000)
            }
        }
    }
}
module.exports = CONFIG